package rus.service.impl;

import java.util.List;

import rus.dao.ShopDAO;
import rus.model.Shop;
import rus.service.ShopManager;

public class ShopManagerImpl extends UniversalManagerImpl implements
		ShopManager {
	
	private ShopDAO shopDAO;

	public void setShopDAO(ShopDAO shopDAO) {
		this.shopDAO = shopDAO;
	}

	public ShopDAO getShopDAO() {
		return shopDAO;
	}

	public void saveShop(Shop shop) {
		shopDAO.save(shop);		
	}

	public List<Shop> getAll() {
		return shopDAO.getAll();
	}

	public Shop getShopById(Integer id) {
		return shopDAO.get(id); 
	}

}
